"nodejs";
const { device } = require('device')
const { delay } = require('lang');
const { performGestures, StrokeDescription, gestures } = require('accessibility');
var dw = device.displayMetrics.heightPixels
var dh = device.displayMetrics.widthPixels
var h1 = (dw) / 10
var bh = (dw) / 7.2
var bh2 = (bh) * 0.28
var ys = h1 + bh / 2
var aa = bh + bh2
var xs = (dh - bh * 5 - bh2 * 4) / 2
var gg = [[{x:xs+1*aa-aa+bh/2,y:1*aa-aa+ys},],[{x:xs+2*aa-aa+bh/2,y:1*aa-aa+ys},],[{x:xs+3*aa-aa+bh/2,y:1*aa-aa+ys},],[{x:xs+4*aa-aa+bh/2,y:1*aa-aa+ys},],[{x:xs+5*aa-aa+bh/2,y:1*aa-aa+ys},],[{x:xs+1*aa-aa+bh/2,y:2*aa-aa+ys},],[{x:xs+2*aa-aa+bh/2,y:2*aa-aa+ys},],[{x:xs+3*aa-aa+bh/2,y:2*aa-aa+ys},],[{x:xs+4*aa-aa+bh/2,y:2*aa-aa+ys},],[{x:xs+5*aa-aa+bh/2,y:2*aa-aa+ys},],[{x:xs+1*aa-aa+bh/2,y:3*aa-aa+ys},],[{x:xs+2*aa-aa+bh/2,y:3*aa-aa+ys},],[{x:xs+3*aa-aa+bh/2,y:3*aa-aa+ys},],[{x:xs+4*aa-aa+bh/2,y:3*aa-aa+ys},],[{x:xs+5*aa-aa+bh/2,y:3*aa-aa+ys},],]
var sl = [0,400,400,400,400,400,400,400,400,400,400,400,400,400,400]
async function main() {
    for (let i = 0; i < gg.length; i++) {
        await delay(sl[i]);
        if (gg[i].length !== 0) {
            if (gg[i].length === 1) {
                performGestures([new StrokeDescription(
                    gg[i], 1, 0
                )])
            }
            else {
                var temp = []
                for (let index = 0; index < gg[i].length; index++) {
                    temp.push(new StrokeDescription(
                        [gg[i][index]], 1, 0
                    ))
                }                performGestures(temp)
            }
        }
    }
}
main();